package cn.demo.service;


import cn.demo.mapper.UserMapper;
import cn.demo.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service//Spring 管理的是key UserMapperImp value 反射机制
public class UserServiceImp implements UserService{
    @Autowired
    private UserMapper userMapper;
    @Override
    public void addUser(User user) {
        userMapper.addUser(user);
    }
}
